<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<head>
<title>渠道汇总</title>
<script language="javascript" type="text/javascript">
/*function doSubmit(){
	$("#year").val($("#yearSelect").val());
	$("#month").val($("#yearSelect").val());
}*/

$(document).ready(function(){
	$("#year").val("${year}");
	$("#month").val("${month}");
});
</script>
</head>
<body>
<jsp:include page="_headMike.jsp"></jsp:include>
<form  class="form-inline" id="form1" name="form1" method="post" action="">
时间选择：     <select id="year" name="year">
		<option value="2010">2010</option>
		<option value="2011">2011</option>
		<option value=2012>2012</option>
		<option value="2013">2013</option>
		<option value="2014">2014</option>
		<option value="2015">2015</option>
		<option value="2016">2016</option>
		<option value="2017">2017</option>
		<option value="2018">2018</option>
		<option value="2019">2019</option>
		<option value="2020">2020</option>
		</select>&nbsp;年&nbsp;
		<select id="month" name="month">
		<option value="01">1</option>
		<option value="02">2</option>
		<option value="03">3</option>
		<option value="04">4</option>
		<option value="05">5</option>
		<option value="06">6</option>
		<option value="07">7</option>
		<option value="08">8</option>
		<option value="09">9</option>
		<option value="10">10</option>
		<option value="11">11</option>
		<option value="12">12</option>
		</select>&nbsp;月&nbsp;
		
		<button type="submit" class="btn" id="button" >查询</button>
</form>


<div>
	<span>唱歌人数（去重）：${result.people }</span><br/>
	<span>有效上麦次数：${result.times }</span>
</div>
<table  class="table table-bordered">
<thead>
<tr>
<th>唱时长</th>
<th>唱歌总次数</th>
<th>百分比</th>
</tr>
</thead>
<tbody>
		<c:forEach var="m" items="${result.list }">
				<tr>
					<td>
						${m.minutes}
					</td>
					<td>
						${m.count}
					</td>
					<td>
					  	${m.percent * 100}%
					</td>
				</tr>
		</c:forEach>
</tbody>
</table>
<div>
备注：<br/>
唱歌次数按有效上麦来统计(大于1分钟）<br/>
</div>
</body>
</html>
 